<template>
  <div>
    御剑乘风来,除魔天地间!===children==={{a1}}
    <hr>
    <input type="text" v-model="bb" @input="btn">
    <hr>
    <input type="button" value="按钮" @click="btn">
  </div>
</template>

<script>
export default {
  name: "",
  data() {
      return {
          bb:this.a1
      }
  },
  props: ["a1"],
  methods:{
      btn(){
          //this.a1=22
          this.$emit("update:a1",this.bb)
      }
  }
};
</script>
<style lang="less" scoped></style>
